import QtQuick 2.2
import QtQuick.Controls 1.4
import QtQuick.Controls.Styles 1.4
import "../mainmenu"

Item {

    property string instructionText: "MoveC *, *, v1000, z100, tool1"

    InstructItem{
        id: label
        height: 40
        textname: qsTr("当前变量：");
        bordercolor: qsTr("gray")
        borderwidth: 1
        anchors{
            left: parent.left; right: parent.right; top: parent.top
        }
    }

    InstructItem{
        id: instruct
        height: 55
        textname: instructionText
        textHLocate: 1;
        textVLocate: 1;
        bordercolor: qsTr("black")
        borderwidth: 1
        anchors{
            left: label.left; right: label.right; top: label.bottom
        }
    }

    TabView{
        id: tabview
        Tab{
            id: data
            title: qsTr("数据")
            source: "AddInstruct.qml"
        }
        Tab{
            id: action
            title: qsTr("功能")
            source: "DebugPanel.qml"
        }

        style: TabViewStyle{
            tab: Rectangle{
                border.color: qsTr("black")
                color: styleData.selected? "gray": "white"
                implicitWidth: tabview.width/2
                implicitHeight: 40
                Text {
                    id: text
                    anchors.centerIn: parent
                    font.pixelSize: 40
                    text: styleData.title

                }
            }
        }

        anchors{
            left: instruct.left; right: instruct.right;
            top: instruct.bottom; bottom: parent.bottom
        }
    }




}
